[IA64] Add ptc.l emulation
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Wed, 24 May 2006 14:48:21 +0000 (08:48 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Wed, 24 May 2006 14:48:21 +0000 (08:48 -0600)
commit6739448b6185d7047744a2bf28592100465cb913
tree4494f946cc089fbc5e3790dd52ed8fec8da02a08
parentbc77a64b00d1b014c495ba2465a15554f1189170
[IA64] Add ptc.l emulation

This patch adds support for ptc.l emulation for xenlinux.
In 2.6.16 kernel it flush_tlb_range will call global_tlb_purge
directly, so ptc.l shouldn't be used when CONFIG_SMP enable.
But in order to enhance performance (maybe), 2.6.17 kernel in
smp environment will do mm check first. If mm is current->active_mm
and the mm (corresponding process) just runs on the local processor,
kernel only needs to do ptc.l at local processor instead of global purge.
So ptc.l emulation is necessary for 2.6.17 kernel.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
xen/arch/ia64/xen/privop.c
xen/arch/ia64/xen/vcpu.c
xen/include/asm-ia64/vcpu.h